# name : aggregate Compute Summary Statistics of Data Subsets via formula
# key : aggregate.formula
# contributor: Shuguang Sun
# --
aggregate(formula = ${1:~}, data = ${2:dt}, FUN = ${3:FUN}${4:, subset, na.action = na.omit}$0)